//
//  CerfiticationFreeOkViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/14.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CerfiticationFreeOkViewController.h"
#import "CerfiticationOkViewModel.h"

@interface CerfiticationFreeOkViewController ()
@property (nonatomic,strong) CerfiticationOkViewModel * cerfiOKViewModel;

@end

@implementation CerfiticationFreeOkViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"认证结果";
    [self addNavigationItemWithTitles:@[@"完成"] isLeft:NO target:self action:@selector(comnintOK) tags:@[@11] theButTitColor:kColor_Rule_Yellow titFont:SYSTEMFONT(15)];
    [self noAllPBack];
    self.cerfiOKViewModel =[[CerfiticationOkViewModel alloc] initWithViewToViewScrollView:self.myScrollView theSuperView:self.view];
    [[self.cerfiOKViewModel.bankHomeBut rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(__kindof UIControl * _Nullable x) {
        [self comnintOK];
    }];
}

-(void)comnintOK{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
